package bean;

import security.*;

/**
 * User bean
 * @author Telepathy
 * method getTagAdmin() will check whether this user
 * is a Administrator; considering the security, there
 * is no method called setTagAdmin();
 */
public class User {
	private int uid;
	private String uname;
	private String upass;
	private String uemail;
	private String uinfo;
	private boolean tagAdmin;
	public User()
	{
		uid = 0;
		uname = "上古神魔";
		uemail = "";
		tagAdmin = false;
	}
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public String getUpass() {
		return upass;
	}
	public void setUpass(String upass) {
		this.upass = upass;
	}
	public String getUemail() {
		return uemail;
	}
	public void setUemail(String uemail) {
		this.uemail = uemail;
	}
	public String getUinfo() {
		return uinfo;
	}
	public void setUinfo(String uinfo) {
		this.uinfo = uinfo;
	}
	public boolean getTagAdmin(){
		return tagAdmin;
	}
	public void initialTagAdimin(){
		tagAdmin = UserSecurityBiz.isAdmin(uid);
	}
}
